package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author mengyb
 * @date 2019-04-16
 */
@Setter
@Getter
@Accessors(chain = true)
@TableName("MMRC_T")
public class MmrcT extends PO<MmrcT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "MMRCENT",type = IdType.INPUT)
    private String MMRCENT;

    private String MMRC001;

    private String MMRC002;

    private String MMRC003;

    private String MMRC020;

    private String MMRC021;

    private String MMRC022;

    private LocalDate MMRC023;

    private BigDecimal MMRC024;

    private String MMRCACTI;
    @TableField(fill = FieldFill.INSERT)
    private String MMRCUSER;
    @TableField(fill = FieldFill.INSERT)
    private String MMRCGRUP;
    @TableField(fill = FieldFill.UPDATE)
    private String MMRCMODU;
    @TableField(fill = FieldFill.INSERT)
    private String MMRCTIME;
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRCDATE;
    @TableField(fill = FieldFill.INSERT)
    private String MMRCORIG;
    @TableField(fill = FieldFill.INSERT)
    private String MMRCORIU;

    @Override
    protected Serializable pkVal() {
        return this.MMRCENT;
    }
}
